package com.liushuai.eas.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liushuai.eas.pojo.Department;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DepartmentMapper extends BaseMapper<Department> {

    //查询所有
    //@Select("select * from department")
    List<Department> queryDepartmentList();

    //根据ID查找
    Department selectOne(Integer id);

    //查询总数
    int queryTotal();

}
